package com.woniu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dept {
    private Integer deptid;

    private String deptname;

    @Max(value = 100,message = "人数不能大于100" )
    @Min(value = 0,message = "人数不能小于0")
    private Integer deptnum;

    private String deptdesc;


}